// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///D:/erp_pro/headend/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/erp_pro/headend/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///D:/erp_pro/headend/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import commonjs from "file:///D:/erp_pro/headend/node_modules/vite-plugin-commonjs/dist/index.mjs";
import { createSvgIconsPlugin } from "file:///D:/erp_pro/headend/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import path from "node:path";
var __vite_injected_original_dirname = "D:\\erp_pro\\headend";
var __vite_injected_original_import_meta_url = "file:///D:/erp_pro/headend/vite.config.js";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    vueJsx(),
    commonjs(),
    createSvgIconsPlugin({
      iconDirs: [
        path.resolve(__vite_injected_original_dirname, "src/assets/icons")
      ],
      symbolId: "icon-[name]"
    })
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  // 配置代理对象，用于解决跨域。开发环境下挺方便
  server: {
    proxy: {
      "/api": {
        target: "https://apis.map.qq.com/",
        //目标源地址，被代理的域名
        changeOrigin: true,
        rewrite: (path2) => path2.replace(/^\/api/, "")
        //自己的接口前缀，代替目标接口的前缀
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxlcnBfcHJvXFxcXGhlYWRlbmRcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXGVycF9wcm9cXFxcaGVhZGVuZFxcXFx2aXRlLmNvbmZpZy5qc1wiO2Nvb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